﻿using System;

namespace NetTopologySuite.GeometriesGraph.Index
{
	public class MonotoneChain
	{
		public MonotoneChain(MonotoneChainEdge mce, int chainIndex)
		{
			this.mce = mce;
			this.chainIndex = chainIndex;
		}

		public void ComputeIntersections(MonotoneChain mc, SegmentIntersector si)
		{
			this.mce.ComputeIntersectsForChain(this.chainIndex, mc.mce, mc.chainIndex, si);
		}

		private readonly MonotoneChainEdge mce;

		private readonly int chainIndex;
	}
}
